package me.gm.stcont.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping(value = "/product")
public class ProductController {

	private Logger logger;

	public ProductController() {
		this.logger = Logger.getLogger(ProductController.class);
	}

	@RequestMapping(value = "/main")
	public String main() {
		logger.debug("started main");
		logger.debug("finished main");

		return "product/main";
	}

	@RequestMapping(value = "/list")
	public String list(@RequestParam int size, @RequestParam int page) {
		logger.debug("started list");
		logger.debug("finished list");

		return "product/list";
	}

}
